#ifndef REMOTECONTROL_HPP
#define REMOTECONTROL_HPP

#include <iostream>
#include "Equipment.hpp"

class RemoteControl
{
public:
    RemoteControl()
    {
        _light = new Light;
        _tv = new TV;
    }

    void LightOn()
    {
        _light->On();
    }

    void LightOff()
    {
        _light->Off();
    }

    void TVOn()
    {
        _tv->On();
    }

    void TVOff()
    {
        _tv->Off();
    }

    ~RemoteControl()
    {
        delete _light;
    }
private:
    Light* _light;
    TV* _tv;
};

#endif